import React, { Component } from 'react';
import { View} from '@tarojs/components';
import '../index.scss';

export default class MaskLayer extends Component {

	// 防止触摸穿透
	touchMove = (e) => {
		return;
	};
	hideMask = () => {
		this.props.onHideMask();
	}

	render() {
		return (
			<View className="mask-layer" onClick={this.hideMask} catchtouchmove={this.touchMove} />
		)
	}
}
